package com.example.yls.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by yls on 2018/11/12.
 */

public class LowPriorityReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle=getResultExtras(false);
        String name=bundle.getString("NAME");
        int age=bundle.getInt("AGE");
        String address=bundle.getString("ADD");
        int num=bundle.getInt("NUMBER");
        Log.e("LowPriorityReceiver","onReceive name = "
                +name+" age ="+age+" address ="+address+" number ="+num);
    }
}
